﻿<UserControl x:Class="Visuals.Panes.WebResultsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ScrollViewer Background="White">
        <ItemsControl ItemsSource="{Binding Results}" Background="White">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Expander IsExpanded="False">
                        <Expander.Header>
                            <TextBlock TextWrapping="Wrap" FontWeight="Bold" Text="{Binding Title}" />
                        </Expander.Header>
                        <StackPanel Margin="30, 0, 0, 0">
                            <TextBlock Text="{Binding Content}" TextWrapping="Wrap" />

                            <TextBlock Padding="0, 5, 0, 0" TextWrapping="Wrap">
                                <Hyperlink NavigateUri="{Binding Url}" RequestNavigate="Hyperlink_RequestNavigate">
                                    <TextBlock Text="{Binding Url}"/>
                                </Hyperlink>
                            </TextBlock>
                        </StackPanel>
                    </Expander>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </ScrollViewer>
</UserControl>
